import type { Dayjs } from 'dayjs';

import type { PageParam, TenantModel } from './base_beans';

/** 用户信息 */
interface SysDeptBase extends TenantModel {
  dept_id?: string;
  parent_id?: string;
  dept_name?: string;
  leader?: string;
  phone?: string;
  email?: string;
}

interface SysDeptReq extends SysDeptBase, PageParam {
  create_time_range?: [Dayjs, Dayjs] | [string, string];
  update_time_range?: [Dayjs, Dayjs] | [string, string];
}

interface SysDeptResp extends SysDeptBase {
  children?: SysDeptResp[];
}

export type { SysDeptBase, SysDeptReq, SysDeptResp };
